/** 商铺信息 */
export interface ShopItem {
  id: string
  name: string
  category: 'chinese' | 'western' | 'fastfood' | 'drinks' | 'dessert'
  address: string
  phone: string
  preparationTime: number
  preparationSpeed: 'fast' | 'normal' | 'slow'
  deliveryDifficulty: number
  rating: number
  notes?: string
  totalOrders?: number
  completedOrders?: number
  avgDeliveryTime?: number
  deliveryRecords?: DeliveryRecord[]
  createdAt?: string
  updatedAt?: string
}

/** 配送记录 */
export interface DeliveryRecord {
  id: string
  date: string
  orderCount: number
  avgTime: number
  notes?: string
}

/** 获取商铺列表请求参数 */
export interface GetShopsRequestData {
  page?: number
  pageSize?: number
  name?: string
  category?: string
  preparationSpeed?: string
  sortBy?: string
  sortOrder?: 'asc' | 'desc'
}

/** 获取商铺列表响应数据 */
export interface GetShopsResponseData {
  list: ShopItem[]
  total: number
  page: number
  pageSize: number
}

/** 创建商铺请求数据 */
export interface CreateShopRequestData {
  name: string
  category: string
  address: string
  phone: string
  preparationTime: number
  deliveryDifficulty: number
  rating: number
  notes?: string
}

/** 更新商铺请求数据 */
export interface UpdateShopRequestData {
  name?: string
  category?: string
  address?: string
  phone?: string
  preparationTime?: number
  deliveryDifficulty?: number
  rating?: number
  notes?: string
}

/** 商铺统计数据 */
export interface ShopStatsData {
  totalShops: number
  fastShops: number
  normalShops: number
  slowShops: number
  categoryStats: Array<{
    category: string
    count: number
  }>
  avgPreparationTime: number
  avgRating: number
}